package com.gk.courses.service;

import java.util.List;

import com.gk.courses.model.Course;
import com.gk.courses.model.CourseException;
import com.gk.courses.model.Student;

public interface CourseService {

	Course getCourse(int id);

	void saveCourse(Course course);

	List<Course> getAllCourses();

	void enrollStudentInCourse(Course course, Student student) throws CourseException;

	List<Student> getEnrolledStudentsInCourse(Course course);

	void registerPrerequisites(Course parentCourse, Course dependedCourse);

	List<Course> getPrerequisites(Course course);

}
